<?php
use think\facade\Route;

//token中间件注册
Route::group('api', function () {
    Route::rule(':action/:method', 'api.:action/:method', 'GET|POST');
});


